@import "~antd/dist/antd.css";
@import '~@ant-design/pro-table/dist/table.css';

body {
  margin: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.85);
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif,
    apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji;
  font-variant: tabular-nums;
  font-feature-settings: "tnum", "tnum";
  width: 100%;
  background-color: #f0f2f5 !important;
}

.site-tree-search-value {
  color: #f50;
}

#root,
body,
html {
  height: 100%;
}

* {
  font-family: '微软雅黑';
}

.ant-pro-table-search {
  margin-bottom: 16px;
  padding: 24px 24px 0;
  background: #fff;
}

.global-spin--blank {
  .ant-spin-container {
    opacity: 1;
    &::after {
      display: none;
    }
  }
}

.page-spin-container {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  width: 100%;

  .ant-spin-text {
    padding-top: 8px;
  }
}

.global-spin-container {
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  z-index: 111;

  .ant-spin-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
  }
}

ul {
  margin: 0;
  padding: 0;

  li {
    list-style: none;
  }
}


.ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover::before,
.ant-tree.ant-tree-directory .ant-tree-treenode-selected::before {
  background: #e6f7ff;
}

.ant-tree.ant-tree-directory .ant-tree-treenode-selected .ant-tree-switcher,
.ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {
  color: #1890ff;
}

//enter是入场前的刹那（点击按钮），appear指页面第一次加载前的一刹那（自动）
.fade-enter, .fade-appear {
  opacity: 0;
}
//enter-active指入场后到入场结束的过程，appear-active则是页面第一次加载自动执行
.fade-enter-active, .fade-appear-active { 
  opacity: 1;
  transition: opacity 1s ease-in;
}

//入场动画执行完毕后，保持状态
.fade-enter-done {
  opacity: 1;
}
//同理，出场前的一刹那，以下就不详细解释了，一样的道理
.fade-exit {
  opacity: 1;
}

.fade-exit-active {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-exit-done {
  opacity: 0;
}